<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>机构端</title>
        <script src="/Public/static/jquery-2.0.3.min.js"></script>
        <script src="/Public/static/layer/layer.js"></script>
        <link rel="stylesheet" href="__PUBLIC__/Home/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	</head>

	<body class="agency_box contentBox pos_rel dpflxr">
		<include file="head" />

		<!-- 2.垂直导航 -->
		<div class="navColumn">
			<a href="{:U('Mechanism/system')}" <if condition="$cur eq 系统配置">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='1'>
				<div class="lineColumn pos_abs"></div>
				<label for="">系统配置</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/system_customer')}" <if condition="$cur eq 客户信息配置">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='2'>
				<div class="lineColumn pos_abs"></div>
				<label for="">客户信息配置</label>
				<div class="rightArrow">
				</div>
			</a>
			
			
		</div>


		
		<!-- 3.1 系统配置  -->
		<div class="contentArea tabPage actived">
			
			<!-- 3.1.1 系统配置 -->
			<div id="appendEmployee" >
				
				<div class="caTitleBox dpflxr">
					<label for="" class="caTitle">系统配置</label>	
				</div>
				<form action="" method="POST">
					<div class="card switchPage">
						<label for="" class="cspTitle first">上班设置</label>
						
						<div class="dpflxr">
							
							<div class="contentItem  dpflxr">
								<label for="" class="title">上班时间：</label>
								
								<select name="work_shift" id="" class="selectBox">
									<option value="1" <if condition="$info['work_shift'] eq 1">selected</if>>08:00</option>
									<option value="2" <if condition="$info['work_shift'] eq 2">selected</if>>08:30</option>
									<option value="3" <if condition="$info['work_shift'] eq 3">selected</if>>09:00</option>
								</select>
							</div>
							<div class="contentItem  dpflxr">
								<label for="" class="title">下班时间：</label>
								
								<select name="closing_time" id="" class="selectBox">
									<option value="1" <if condition="$info['closing_time'] eq 1">selected</if>>17:00</option>
									<option value="2" <if condition="$info['closing_time'] eq 2">selected</if>>17:30</option>
									<option value="3" <if condition="$info['closing_time'] eq 3">selected</if>>18:00</option>
								</select>
							</div>
							
						</div>
						<div class="contentItem location dpflxr">
							{:hook('BaiduMap',array('name'=>"map",'value'=>$info['map']))}
						</div>
						<div class="contentItem location dpflxr">
							<label for="" class="title">上班地址：</label>
							<div class="pos_rel">
								<input type="text" class="inputBox" id="dd" name="address" value="{$info['address']}" readonly="true">
								<div class="pos_abs btn" id="dw" >坐标转换地址</div>
							</div>
						</div>
						<label for="" class="cspTitle">回收及扣分规则</label>
						<label class="cspTitleNote">(设置多少天客户未完成，二级分销关系自动释放)</label>
						<div class="contentItem setting dpflxr">
							<label for="" class="title">1：</label>
							<div class="settingBox dpflxr">
								<label>信息录入后</label>
								<input type="number" class="settingItem" name="information_entry" value="{$info['information_entry']}" placeholder="0"/>
								<label>天未生成跟进记录的自动回收</label>
							</div>
							
						</div>
						<div class="contentItem setting dpflxr">
							<label for="" class="title">2：</label>
							<div class="settingBox dpflxr">
								<label>首次上访后</label>
								<input type="number" class="settingItem" name="first_petition" value="{$info['first_petition']}" placeholder="0"/>
								<label>天未更新跟进记录的，扣</label>
								<input type="number" class="settingItem" name="first_petition_point" value="{$info['first_petition_point']}" placeholder="0"/>
								<label>分</label>
							</div>
							
						</div>
						<div class="contentItem setting dpflxr">
							<label for="" class="title">3：</label>
							<div class="settingBox dpflxr">
								<label>客户</label>
								<input type="number" class="settingItem" name="not_visited" value="{$info['not_visited']}" placeholder="0"/>
								<label>天未到访的，或</label>
								<input type="number" class="settingItem" name="unsettled" value="{$info['unsettled']}" placeholder="0"/>
								<label>天未成交的自动回收</label>
							</div>
							
						</div>
						<div class="contentItem setting dpflxr">
							<label for="" class="title">4：</label>
							<div class="settingBox dpflxr">
								<label>认筹客户和认购客户</label>
								<input type="number" class="settingItem" name="not_followed_up" value="{$info['not_followed_up']}" placeholder="0"/>
								<label>天未更新跟进记录的，扣</label>
								<input type="number" class="settingItem" name="point_deduction" value="{$info['point_deduction']}" placeholder="0"/>
								<label>分</label>
							</div>
							
						</div>
						<label for="" class="cspTitle">加分规则</label>
						<div class="dpflxr">
							<div class="contentItem  dpflxr ">
								<label for="" class="title">每月初始分：</label>
								<div class="pos_rel">
									<input type="number" class="inputBox" name="initial_integral" value="{$info['initial_integral']}" placeholder="0" style="padding-right: 56px;"
										placeholder-style="font-size:16px;line-height:48px;color:#bfa;"/>
									<label class="pos_abs unit">分</label>
								</div>
								
							</div>
							<div class="contentItem  dpflxr ">
								<label for="" class="title">录入信息加：</label>
								<div class="pos_rel">
									<input type="number" class="inputBox" name="input_information" value="{$info['input_information']}" placeholder="0" style="padding-right: 56px;"
										placeholder-style="font-size:16px;line-height:48px;color:#bfa;"/>
									<label class="pos_abs unit">分</label>
								</div>
								
							</div>
							<div class="contentItem  dpflxr ">
								<label for="" class="title">邀约来访加：</label>
								<div class="pos_rel">
									<input type="number" class="inputBox" name="invitation_to_visit" value="{$info['invitation_to_visit']}" placeholder="0" style="padding-right: 56px;"
										placeholder-style="font-size:16px;line-height:48px;color:#bfa;"/>
									<label class="pos_abs unit">分</label>
								</div>
								
							</div>
							<div class="contentItem  dpflxr ">
								<label for="" class="title">认筹加：</label>
								<div class="pos_rel">
									<input type="number" class="inputBox" placeholder="0" name="raise_money" value="{$info['raise_money']}" style="padding-right: 56px;"
										placeholder-style="font-size:16px;line-height:48px;color:#bfa;"/>
									<label class="pos_abs unit">分</label>
								</div>
								
							</div>
							<div class="contentItem  dpflxr ">
								<label for="" class="title">认购加：</label>
								<div class="pos_rel">
									<input type="number" class="inputBox" name="subscription" value="{$info['subscription']}" placeholder="0" style="padding-right: 56px;"
										placeholder-style="font-size:16px;line-height:48px;color:#bfa;"/>
									<label class="pos_abs unit">分</label>
								</div>
								
							</div>
							<div class="contentItem  dpflxr ">
								<label for="" class="title">签约加：</label>
								<div class="pos_rel">
									<input type="number" class="inputBox" name="sign_a_contract" value="{$info['sign_a_contract']}" placeholder="0" style="padding-right: 56px;"
										placeholder-style="font-size:16px;line-height:48px;color:#bfa;"/>
									<label class="pos_abs unit">分</label>
								</div>
								
							</div>
						</div>
						<label for="" class="cspTitle">来源设置</label>
						<label class="cspTitleNote">(多个请使用英文逗号间隔)</label>
						<div class="contentItem  dpflxr">
							<label for="" class="title">内容：</label>
						
							<textarea rows="" cols="" class="textBox" placeholder="请输入..." name="source" value="{$info['source']}">{$info['source']}</textarea>
						</div>
						
						<div><button type="submit"  class="ciBtn">保存</button></div>
					</div>
				</form>
			</div>
			
					
			
		</div>
		
		
		
	</body>
</html>
<script type="text/javascript">
	$("body").on('click','.ui-dialog-close',function(){
		alert('123');
	})
	$("#dw").click(function(){

		var map=$("input[name='map']").val();
		var m=map.split(',');
		var ak='jtgUnOglQDkFEpRFD2qhnb3umKGQIL15';
		var lat=m[1];
		var lng=m[0];
		// console.log(lat);return false;
		$.ajax({
			url:"{:U('Mechanism/getCityName1')}",
			data:{ak:ak,lat:lat,lng:lng},
			type:"post",
			dataType:"json",
			success:function(data){
				var address=data.data.address;
				//$("#dd").val(address);
				$("input[name='address']").val(address);
			}
		})
	})
</script>